//
//  RYProductJianceModel.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/19.
//  Copyright © 2021 叁拾叁. All rights reserved.
//

import UIKit
import HandyJSON
import RxSwift

struct RYProductJianceModel: HandyJSON, Equatable {
    
    
    var sensors: [Sensors]?
    
    var device: Device?
    
    var real: [Real]?
    
}

struct Sensors: HandyJSON, Equatable {
    var uuid: String?
    var unit: String?
    var id: String?
    var typeCode: String?
    var receiveTime: String?
    var parentDeviceId: String?
    var currentValue: String?
    var textValue: String?
    var deviceId: String?
    var deviceName: String?
    var range: String?
    var sort: Int?
    var typeName: String?
}

struct Real: HandyJSON, Equatable {
    var typeCode: String?
    var currentValue: String?
}

struct Device: HandyJSON, Equatable {
    var uuid: String? //TODO: Specify the type to conforms Codable protocol
    var unit: String? //TODO: Specify the type to conforms Codable protocol
    var id: Int?
    var typeCode: String?
    var isControllable: String? //TODO: Specify the type to conforms Codable protocol
    var receiveTime: String? //TODO: Specify the type to conforms Codable protocol
    var parentDeviceId: String?
    var referenceJson: String? //TODO: Specify the type to conforms Codable protocol
    var textValue: String? //TODO: Specify the type to conforms Codable protocol
    var deviceId: String?
    var currentValue: Int?
    var deviceName: String?
    var sort: Int?
    var typeName: String?
    var status: Int?
}
